<%--
  Created by IntelliJ IDEA.
  User: 星星在唱歌
  Date: 2022/2/26
  Time: 11:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>详细景点信息</title>
</head>
<body>
<div style="width: 800px; margin: 0 auto;text-align: center;">
    <h1>详细景点信息</h1>
    <form action="${pageContext.request.contextPath}/main?cmd=register" method="post" onsubmit="return check()">
        <table border="1" cellspacing="0" cellpadding="8" style="margin: 0 auto;">
            <tr>
                <td>景点介绍</td>
                <td><textarea name="introduce" cols="50" rows="10" id="address">${one.introduce}</textarea></td>
            </tr>
            <tr>
                <td>发布时间</td>
                <td><input type="text" name="pubTime" value="${one.pubTime}"></td>
            </tr>
            <tr>
                <td>票价</td>
                <td><input type="text" name="price" value="${one.price}"></td>
            </tr>
            <tr>
                <td>城市</td>
                <td>
                    <select name="cityId">
                        <c:forEach items="${city}" var="c">
                            <option value="${c.cityId}"
                                    <c:if test="${one.cityId == c.cityId}">selected</c:if>> ${c.cityName} </option>
                        </c:forEach>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <a href="${pageContext.request.contextPath}/main?cmd=main"
                       style="text-decoration: none;color: hotpink">返回主页</a>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
